home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1998
/
MacHack 1998.toast
/
Papers
/
From CodeWarrior to Delphi
/
TalkBASIC
/
Example 1 -- A simple pgm
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-11-28
|
225 b
|
10 lines
|
[
TEXT/?BAS
]
MsgBox("This program adds up numbers, up to the number you specify")
topnumber = val(inputbox$("Add up to what number?"))
total = 0
for number = 1 to topnumber
total = total + number
next
MsgBox("The total is " + total)